<include file="Public/head" />
<link rel="stylesheet" href="__PUBLIC__/webuploader/css/webuploader.css" />

<body class="no-skin">
    <include file="Public/header" />
    <div class="main-container" id="main-container">
        <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {}
        </script>
        <include file="Public/sidebar" />
        <div class="main-content">
            <div class="main-content-inner">
                <!-- #section:basics/content.breadcrumbs -->
                <include file="Public/breadcrumbs" />
                <!-- /section:basics/content.breadcrumbs -->
                <div class="page-content">
                    <include file="Public/set" />
                    <!-- /section:settings.box -->
                    <div class="row">
                        <div class="col-xs-12">
                            <!-- PAGE CONTENT BEGINS -->
                            <form class="form-horizontal" action="{:U('update')}" method="post">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-1"> 活动名称 </label>
                                    <div class="col-sm-9">
                                        <input type="text" class="col-xs-10 col-sm-5" name="name" value="{$info.name}">
                                        <input type="hidden" name="id" value="{$info.id}">
                                    </div>
                                </div>
                                <div class="space-4"></div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 开始时间 </label>
                                    <div class="col-sm-9">
                                        <div class="input-group col-xs-10 col-sm-5">
                                            <input type="text" class="col-xs-12 date-picker" name="starttime" value="{$info.stime}" data-date-format="yy-mm-dd" data-cpsb="true">
                                            <span class="input-group-addon"><i class="fa fa-calendar bigger-110"></i></span>
                                        </div>
                                    </div>
                                </div>
                                <div class="space-4"></div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-4"> 结束时间 </label>
                                    <div class="col-sm-9">
                                        <div class="input-group col-xs-10 col-sm-5">
                                            <input type="text" class="col-xs-12 date-picker" name="endtime" value="{$info.etime}" data-date-format="yy-mm-dd" data-cpsb="true">
                                            <span class="input-group-addon"><i class="fa fa-calendar bigger-110"></i></span>
                                        </div>
                                    </div>
                                </div>
                                <div class="space-4"></div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-6"> 广告 </label>
                                    <div class="col-sm-9">
                                        <textarea name="slogan" id="slogan" placeholder="广告" class="rcol-xs-10 col-sm-5" rows="5">{$info.slogan}</textarea>
                                    </div>
                                </div>
                                <!-- 活动主图 -->
                                <div class="space-4"></div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-2"> 主图 </label>
                                    <div class="col-sm-9">
                                        <div class="input-group col-sm-5">
                                            <!-- start -->
                                            <div class="row">
                                                <div class="col-sm-12 hiduploader">
                                                    <div data-provides="fileinput" id="image-handle" class="fileinput">
                                                        <div class="thumbnail">
                                                            <img alt="主图" src="<empty name='info.pic'>/Public/admin/images/none.png<else/>{$info.pic}</empty>" class="img-reponsetive" id="img-act">
                                                            <input type="hidden" value="{$info.pic}" id="pic" name="pic">
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <!-- end -->
                                        </div>
                                    </div>
                                </div>
                                <!-- 活动主图 -->
                                <div class="space-4"></div>
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="form-field-6"> 内容 </label>
                                    <div class="col-sm-9">
                                        <textarea name="content" id="content" placeholder="内容" class="text-editor" rows="5">{$info.content}</textarea>
                                    </div>
                                </div>
                                <div class="space-4"></div>
                                <div class="col-md-offset-2 col-md-9">
                                    <button class="btn btn-info" type="submit"> <i class="icon-ok bigger-110"></i> 提交 </button>
                                    &nbsp; &nbsp; &nbsp;
                                    <!-- <button class="btn" type="reset"> <i class="icon-undo bigger-110"></i> 重置 </button> -->
                                    <a class="btn" href="{:U('index')}"> <i class="icon-undo bigger-110"></i> 返回 </a>
                                </div>
                            </form>
                            <!-- PAGE CONTENT ENDS -->
                        </div>
                        <!-- /.col -->
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.page-content -->
            </div>
        </div>
        <!-- /.main-content -->
        <include file="Public/footer" />
    </div>
    <!-- /.main-container -->
    <include file="Public/footerjs" />
    <!-- inline scripts related to this page -->
    <script src="__PUBLIC__/webuploader/js/webuploader.js"></script>
    <script type="text/javascript">
    var serverurl = "{:U('/Admin/photo/upload',array('act'=>'sale'))}";
    </script>
    <script src="__PUBLIC__/admin/js/amall/sale/edit.js"></script>
</body>

</html>